package org.raphets.demorecyclerview.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import org.raphets.demorecyclerview.R;

public class MainNNNActivity extends AppCompatActivity  {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mai);

        //EventBus.getDefault().register(this);
    }
//    @Subscribe(sticky = true,threadMode = ThreadMode.MAIN)
//    public void helloEventBus(String message){
//        if (message.equals("guan")){
//            //finish();
//            Toast.makeText(MainNNNActivity.this,"guanbi",Toast.LENGTH_SHORT).show();
//        }
//    }
//    @Subscribe(sticky  = true)
//    public void helloEventBu(String message){
//        //if (message.equals("guan")){
//        //    finish();
//            Toast.makeText(MainActivity.this,message,Toast.LENGTH_SHORT).show();
//        //}
//    }

}
